package com.tony.blog.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tony.blog.model.entity.SysUserRoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * @Title: SysUserRoleMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/07/09/10:05
 * @Description: 用户与角色对应关系
 */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRoleEntity> {

    /**
    * @Description: deleteBatch 批量删除角色用户信息
    * @Param: [concatStrToInt]
    * @return: boolean
    * @Author: 皮蛋布丁
    * @Date: 2021/7/25 16:50
    */
    boolean deleteBatch(@Param("roleIds") String roleIds);

    /**
    * @Description: queryRoleIdList 根据userId获取用户信息
    * @Param: [userId]
    * @return: java.util.List<java.lang.Long>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/26 21:28
    */
    List<Long> queryRoleIdList(Long userId);
}